package cn.qyl.joha.service.Impl;

import java.util.List;

import cn.qyl.joha.common.PageModel;
import cn.qyl.joha.dao.OrderDao;
import cn.qyl.joha.dao.Impl.OrderDaoImpl;
import cn.qyl.joha.dto.Order;
import cn.qyl.joha.service.OrderService;

public class OrderServiceImpl implements OrderService {
	
	OrderDao orderDao = new OrderDaoImpl();
	@Override
	public List<Order> getOrdersByPage(Order order, PageModel pageModel) {
		
		return orderDao.getOrdersByPage(order,pageModel);
	}

	@Override
	public int getCountByOrder(Order order) {
		
		return orderDao.getCountByOrder(order);
	}
	
	//新增订单
	@Override
	public int addOrders(Order order) {
		
		return orderDao.addOrders(order);
	}
	
	

}
